/*@ File Name : graphicscore.h
  @ Date : 18/11/2011
  @ Author : Guillaume Collombet, Ulysse Mensa, Sylvain Chambe

Fireworks simulation projet
Copyright (C) 2011 Guillaume Collombet, Ulysse Mensa, Sylvain Chambe

This program is free software; you can redistribute it and/or
modify it under the terms of the GNU General Public License
as published by the Free Software Foundation; either version 2
of the License.

This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
GNU General Public License for more details.

You should have received a copy of the GNU General Public License
along with this program; if not, write to the Free Software
Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.

You can contact us by sending mail at fireworks-simulation-project@googlecode.com*/

#if !defined(_GRAPHICSCORE_H)
#define _GRAPHICSCORE_H

#include "const.h"
#include "camera.h"
#include "opengl.h"
#include "cubemap.h"
#include "land.h"
#include "color.h"
#include "texture.h"
#include "particle.h"

unsigned int GraphicsCore_LoadTexture(const char * filename,BOOL useMipMap);

#include "tiledsprite.h"
#include "sprite.h"

static TiledSprite flareSprites;
static TiledSprite smokeSprites;

void GraphicsCore_Init(int width,int height);
void GraphicsCore_InitFrame();
void GraphicsCore_Destroy();
void GraphicsCore_EndFrame();
void GraphicsCore_DrawAxis();
void GraphicsCore_DrawCubemap(const Camera* camera);
void GraphicsCore_DrawMode(int mode);
void GraphicsCore_DrawLand(const Camera* camera, float elapsed);
void GraphicsCore_DrawParticle(const Vector3f* position,const Camera* camera);
void GraphicsCore_UpdateCamera(const Camera* camera);


#endif  /*_GRAPHICSCORE_H*/
